package com.isoft.c2team3service2.controller;

import com.isoft.c2team3service2.entity.Album;
import com.isoft.c2team3service2.entity.Concert;
import com.isoft.c2team3service2.entity.Plate;
import com.isoft.c2team3service2.service.EsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 蓝莓
 * @date 2025/7/4 10:54
 */
@RestController
@RequestMapping("/es")
public class EsController {

    @Autowired
    EsService esService;

    @GetMapping("/album")
    public Album getAlbumChartData() {
        return esService.getAlbum();
    }

    @GetMapping("/concert")
    public Concert getConcert() {
        return esService.getConcert();
    }

    @GetMapping("/plate")
    public Plate getPlate() {
        return esService.getPlate();
    }
}
